package com.jinzhi.jzweb.service.impl;

import com.jinzhi.common.base.CoreServiceImpl;
import com.jinzhi.jzweb.dao.TrainingResultsDao;
import com.jinzhi.jzweb.domain.TrainingResultsDO;
import com.jinzhi.jzweb.service.TrainingResultsService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 
 * <pre>
 * 培训成绩表
 * </pre>
 * <small> 2020-02-24 21:00:11 | lance</small>
 */
@Service
public class TrainingResultsServiceImpl extends CoreServiceImpl<TrainingResultsDao, TrainingResultsDO> implements TrainingResultsService {

    public boolean selResultsStateList(Map map){
        boolean b = false;
        List<Integer> ii = this.baseMapper.selResultsStateList(map);
        if(ii != null && ii.size() > 0){
            for(Integer i : ii){
                if(i.equals(1)){
                    b = true;
                }
            }
        }
        return b;
    }
}
